package com.hutiao.snowhb.wechat.parser;

import org.jdom.Element;
import org.jdom.JDOMException;

import com.hutiao.snowhb.wechat.vo.WxRecvVideoMsg;
import com.hutiao.snowhb.wechat.vo.WxRecvMsg;

public class WxRecvVideoMsgParser extends WxRecvMsgBaseParser {

	@Override
	protected WxRecvVideoMsg parser(Element root, WxRecvMsg msg) throws JDOMException {
		String mediaId = getElementText(root, "MediaId");
		String thumbMediaId = getElementText(root, "ThumbMediaId");
		
		return new WxRecvVideoMsg(msg, mediaId,thumbMediaId);
	}

}
